
<%@taglib prefix="s" uri="/struts-tags"%>
<%@page pageEncoding="UTF-8"%>
<html>
    <head>
    	<meta http-equiv="text/html;charset=UTF-8"/>
    	<link rel="stylesheet" type="text/css" href="<s:url value='/css/club.css'/>"/>
    	<script language="javascript">
    	    function displayOrNot(xmlObject) {
				    member = xmlObject.attributes["class"].value;
				    targetObject = xmlObject.nextSibling;
					targetObject = targetObject.nodeName == "#text" ? targetObject.nextSibling : targetObject;
					targetObject.style.display = (targetObject.style.display == "block"?"none":"block");
					xmlObject.style.background = "url(../../images/bbs/" + member + (targetObject.style.display == "none" ? "_close" : "_open") + ".gif) no-repeat left center";
					xmlObject.style.background = "url(<s:url value='/images/bbs/' includeParams='none'/>" + member + (targetObject.style.display == "none" ? "_close" : "_open") + ".gif) no-repeat left center";
			}
			
    	    function xml2html() {

    	        var targetObject = document.getElementById("club");
    	        
    	        var xmlObject = new ActiveXObject("Microsoft.XMLDOM");
    	        var xslObject = new ActiveXObject("Microsoft.XMLDOM");
    	        var path = location.href.replace(/(.*HundredCards).*/,"$1");

    	        xmlObject.validateOnParse=true;
    	        xslObject.validateOnParse=true;
    	        
    	        xmlObject.async=false;
                xslObject.async=false;

    	        xmlObject.load(path + "/pages/bbs/club.xml");
    	        
    	        if (xmlObject.parseError.errorCode != 0) {
    	        	targetObject.innerHTML = "Error Occured in XML file";
    	        	return false;
    	        }
    	        
    	        xslObject.load(path + "/pages/bbs/xml2html.xsl");
    	        
    	        if (xslObject.parseError.errorCode != 0) {
    	        	targetObject.innerHTML = "Error Occured in XML file";
    	        	return false;
    	        }    	      

    	        result = xmlObject.transformNode(xslObject);
    	        targetObject.innerHTML = result;
    	        
    	        return true;
    	    }
    	    
	  	  	function pageForward(componentId) {
	  	  		top.frames[2].location = "<s:url value='/bbs/subBoardAction.action'/>" + "?componentId=" + componentId;
	  	  	}    	       	    
    	</script>
    </head>
	<body  onload="xml2html()" style="overflow-x:hidden">
	    <div>
	    	<img src="<s:url value='/images/bbs/club_logo.gif'/>"/>
	    	<ul id="clubHandling">
	    	  <li><s:submit type="button" value="注册" theme="simple"/></li>
		      <li><s:submit type="button" value="登录" theme="simple"/></li>
	      </ul>
	    	<img src="<s:url value='/images/bbs/horizon_line.gif'/>"/>
	    	<div id="club">
        </div>	
	    </div>
	</body>
</html>